package com.jiyun.h2303b.controller;

import com.jiyun.h2303b.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("account")
public class AccountController {

    @Autowired
    private AccountService accountService;


    @RequestMapping("debit")
    public void debit(int userId,int money){
        accountService.debit(userId,money);
    }
}
